package com.tom.blog.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tom.blog.dao.CommentDao;
import com.tom.blog.entity.Comment;
import com.tom.blog.service.CommentService;

@Service
public class CommentServiceImpl implements CommentService {

	@Autowired
	private CommentDao dao;
	@Override
	@Transactional
	public void remove(Long id) {
		dao.delete(id);
	}
	@Override
	public Comment get(Long id) {
		return dao.findOne(id);
	}

}
